//
//  ShopSpecialCell.m
//  成都咖啡
//
//  Created by figaro on 16/3/29.
//  Copyright © 2016年 wenhao. All rights reserved.
//

#import "ShopSpecialCell.h"
#import <BmobSDK/Bmob.h>
#import "ShoppingName.h"

@implementation ShopSpecialCell

- (void)awakeFromNib {
    
    BmobQuery *timeCellQuery = [BmobQuery queryWithClassName:@"ShopInfo"];
    NSString *shopObjectIDString = [ShoppingName shareShoppingName].selectedObjectID;
    [timeCellQuery getObjectInBackgroundWithId:shopObjectIDString block:^(BmobObject *object, NSError *error) {
        if (error){
            //进行错误处理
            NSLog(@"error = %@",error);
        }else{
            if (object) {
                
                self.specialLabel.text = [object objectForKey:@"shopSpecial"];
                
            }
        }
    }];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
